using GameKit.Core;
using UnityEngine;

namespace GameKitUnity.Core
{
    public class TransformComponent : EntityComponent
    {
        private readonly Transform _transform;

        public TransformComponent(Transform transform)
        {
            _transform = transform;
        }

        public Vector3 Position
        {
            get => _transform.position;
            set => _transform.position = value;
        }

        public Vector3 Forward
        {
            get => _transform.forward;
            set => _transform.forward = value;
        }

        public Quaternion Rotation
        {
            get => _transform.rotation;
            set => _transform.rotation = value;
        }
    }
}